package tech.aistar.day06.design.dip;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/15 2:42 下午
 */
public class TestDriver {
    public static void main(String[] args) {
        //1. 未遵守依赖倒置原则的写法
        Driver driver = new Driver();

        CarSup baoMa = new BaoMa();

        driver.driverCar(baoMa);

        CarSup aodi = new Aodi();
        driver.driverCar(aodi);

        CarSup plane = new Plane();
        driver.driverCar(plane);
    }
}
